package academic.ui.client.event;

import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.event.shared.GwtEvent;
import com.gwtplatform.mvp.client.EventBus;

public class LoggedInEvent extends GwtEvent<LoggedInEventHandler>{

	
	private static final Type<LoggedInEventHandler> TYPE = new Type<LoggedInEventHandler>();
	

	public static Type<LoggedInEventHandler> getType() {
		return TYPE;
	}
	
	public static void fire(EventBus eventBus) {
		eventBus.fireEvent(new LoggedInEvent());
	}
	
	@Override
	protected void dispatch(LoggedInEventHandler handler) {
		handler.onLoggedInEvent(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<LoggedInEventHandler> getAssociatedType() {
		return getType();
	}

}
